import { Injectable } from '@angular/core';
import { CommHttpService } from '../../../core/comm.http.service';
import { HttpService } from '../../../core/http.service';
import { SERVERS_NAME } from '../../../config/config';

@Injectable()
export class DictionaryService extends CommHttpService {
  protected preUrl = `${SERVERS_NAME.SECURITY_SERVER}sys/dictionary/`;

  constructor(protected http: HttpService) {
    super(http);
  }

  /**
   * 删除
   */
  delete(arr) {
    return this.http.post(arr, `${SERVERS_NAME.SECURITY_SERVER}` + 'sys/dictionary/delete');
  }
}
